package com.model.basemodel.util

import android.content.Context
import android.widget.Toast
import com.model.basemodel.app.MyApplication

/**
 * @ClassName Toast
 * @Description TODO
 * @Author ：WangZhuang
 * @Date : 2022/5/11 15:56
 * @Version :1.0
 */
fun String.showToast(duration: Int = Toast.LENGTH_SHORT) {
    Toast.makeText(MyApplication.instance(), this, duration).show()
}

fun Int.showToast(duration: Int = Toast.LENGTH_SHORT) {
    Toast.makeText(MyApplication.instance(), this, duration).show()
}